package dpatterns.decorator.starbuzz.coffee.impl;

import dpatterns.decorator.starbuzz.coffee.Coffee;
import dpatterns.decorator.starbuzz.coffee.Size;

public class HouseBlend implements Coffee {
	
	protected Size size;
	
	public HouseBlend() {
		this.size = Size.SMALL;
	}
	
	public HouseBlend(Size size) {
		this.size = size;
	}
	
	@Override
	public String getDescription() {
		return "House Blend Coffee ("+size.description()+")";
	}
	
	@Override
	public double getCost() {
		if(size == Size.SMALL) {
			return 1.50;
		} else if(size == Size.MEDIUM) {
			return 1.75;
		} else if(size == Size.LARGE) {
			return 2.00;
		} 
		return 0;
	}
	
	public Size getSize() {
		return size;
	}

	public void setSize(Size size) {
		this.size = size;
	}
}
